.class public Lcom/bigtincan/android/adfree/FreeMe;
.super Landroid/app/Activity;
.source "FreeMe.java"


# static fields
.field private static final buildtime:J = 0x4e091588L

.field private static final days31:J = 0x28de80L

.field private static final oneDay:J = 0x15180L

.field private static rotateDirection:I = 0x0

.field private static sIV:Ljava/lang/Thread; = null

.field private static final sixMonths:J = 0xf53700L

.field private static splashImageView:Landroid/widget/ImageView;


# instance fields
.field private common:Lcom/bigtincan/android/adfree/Common;

.field private expiredate:J

.field private handler:Landroid/os/Handler;

.field private keepGoingHandler:Landroid/os/Handler;

.field private rotateHandler:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 30
    const/4 v0, 0x1

    sput v0, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    .line 33
    const/4 v0, 0x0

    sput-object v0, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    .line 22
    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    .line 22
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 28
    const-wide/32 v0, 0x4efe4c88

    iput-wide v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->expiredate:J

    .line 214
    new-instance v0, Lcom/bigtincan/android/adfree/FreeMe$1;

    invoke-direct {v0, p0}, Lcom/bigtincan/android/adfree/FreeMe$1;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    iput-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->keepGoingHandler:Landroid/os/Handler;

    .line 223
    new-instance v0, Lcom/bigtincan/android/adfree/FreeMe$2;

    invoke-direct {v0, p0}, Lcom/bigtincan/android/adfree/FreeMe$2;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    iput-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->rotateHandler:Landroid/os/Handler;

    .line 232
    new-instance v0, Lcom/bigtincan/android/adfree/FreeMe$3;

    invoke-direct {v0, p0}, Lcom/bigtincan/android/adfree/FreeMe$3;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    iput-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->handler:Landroid/os/Handler;

    .line 22
    return-void
.end method

.method static synthetic access$0(Lcom/bigtincan/android/adfree/FreeMe;)V
    .locals 0
    .parameter

    .prologue
    .line 100
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/FreeMe;->continueBoot()V

    return-void
.end method

.method static synthetic access$1(Lcom/bigtincan/android/adfree/FreeMe;)V
    .locals 0
    .parameter

    .prologue
    .line 241
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/FreeMe;->doRotate()V

    return-void
.end method

.method static synthetic access$2(Lcom/bigtincan/android/adfree/FreeMe;)V
    .locals 0
    .parameter

    .prologue
    .line 255
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/FreeMe;->showMessage()V

    return-void
.end method

.method static synthetic access$3(Lcom/bigtincan/android/adfree/FreeMe;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 223
    iget-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->rotateHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$4(Lcom/bigtincan/android/adfree/FreeMe;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 214
    iget-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->keepGoingHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$5(Lcom/bigtincan/android/adfree/FreeMe;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 232
    iget-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$6(Lcom/bigtincan/android/adfree/FreeMe;)Lcom/bigtincan/android/adfree/Common;
    .locals 1
    .parameter

    .prologue
    .line 29
    iget-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->common:Lcom/bigtincan/android/adfree/Common;

    return-object v0
.end method

.method static synthetic access$7(Lcom/bigtincan/android/adfree/FreeMe;)V
    .locals 0
    .parameter

    .prologue
    .line 285
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/FreeMe;->showMessageNext()V

    return-void
.end method

.method private continueBoot()V
    .locals 14

    .prologue
    const-wide/32 v4, 0x5265c00

    const v13, 0x7f040012

    const v12, 0x1080027

    const/4 v3, 0x0

    .line 104
    const-wide/16 v1, 0x7d0

    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 109
    :goto_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    const-wide/16 v10, 0x3e8

    div-long/2addr v1, v10

    iget-wide v10, p0, Lcom/bigtincan/android/adfree/FreeMe;->expiredate:J

    cmp-long v1, v1, v10

    if-lez v1, :cond_0

    .line 111
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 112
    invoke-virtual {v1, v12}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 113
    const v2, 0x7f04002a

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 114
    const v2, 0x7f04002b

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 115
    invoke-virtual {p0, v13}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/bigtincan/android/adfree/FreeMe$6;

    invoke-direct {v3, p0}, Lcom/bigtincan/android/adfree/FreeMe$6;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 122
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 188
    :goto_1
    return-void

    .line 105
    :catch_0
    move-exception v7

    .line 106
    .local v7, e:Ljava/lang/Exception;
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "onCreate() Exception: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/bigtincan/android/adfree/Common;->LogMessage(Ljava/lang/String;)V

    goto :goto_0

    .line 126
    .end local v7           #e:Ljava/lang/Exception;
    :cond_0
    iget-object v1, p0, Lcom/bigtincan/android/adfree/FreeMe;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v1}, Lcom/bigtincan/android/adfree/Common;->GotRoot()Z

    move-result v1

    if-nez v1, :cond_1

    .line 128
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 129
    invoke-virtual {v1, v12}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 130
    const v2, 0x7f04002c

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 131
    const v2, 0x7f04002d

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 132
    invoke-virtual {p0, v13}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/bigtincan/android/adfree/FreeMe$7;

    invoke-direct {v3, p0}, Lcom/bigtincan/android/adfree/FreeMe$7;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 140
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_1

    .line 144
    :cond_1
    iget-object v1, p0, Lcom/bigtincan/android/adfree/FreeMe;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v2, "DoUpdateCheck"

    invoke-virtual {v1, v2}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 146
    const-string v1, "alarm"

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 147
    .local v0, mgr:Landroid/app/AlarmManager;
    new-instance v8, Landroid/content/Intent;

    const-class v1, Lcom/bigtincan/android/adfree/UpdateCheck;

    invoke-direct {v8, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 148
    .local v8, i:Landroid/content/Intent;
    invoke-static {p0, v3, v8, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 149
    .local v6, pi:Landroid/app/PendingIntent;
    const/4 v1, 0x2

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    add-long/2addr v2, v4

    invoke-virtual/range {v0 .. v6}, Landroid/app/AlarmManager;->setRepeating(IJJLandroid/app/PendingIntent;)V

    .line 152
    .end local v0           #mgr:Landroid/app/AlarmManager;
    .end local v6           #pi:Landroid/app/PendingIntent;
    .end local v8           #i:Landroid/content/Intent;
    :cond_2
    new-instance v9, Ljava/lang/Thread;

    new-instance v1, Lcom/bigtincan/android/adfree/FreeMe$8;

    invoke-direct {v1, p0}, Lcom/bigtincan/android/adfree/FreeMe$8;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-direct {v9, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 187
    .local v9, t:Ljava/lang/Thread;
    invoke-virtual {v9}, Ljava/lang/Thread;->start()V

    goto/16 :goto_1
.end method

.method private doRotate()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 243
    sget v0, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    if-lt v0, v2, :cond_0

    sget v0, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    const/4 v1, 0x4

    if-le v0, v1, :cond_1

    .line 244
    :cond_0
    sput v2, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    .line 246
    :cond_1
    sget v0, Lcom/bigtincan/android/adfree/FreeMe;->rotateDirection:I

    packed-switch v0, :pswitch_data_0

    .line 253
    :goto_0
    return-void

    .line 248
    :pswitch_0
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    const/high16 v1, 0x7f02

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 249
    :pswitch_1
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    const v1, 0x7f020001

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 250
    :pswitch_2
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    const v1, 0x7f020002

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 251
    :pswitch_3
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    const v1, 0x7f020003

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    .line 246
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private showMessage()V
    .locals 3

    .prologue
    .line 257
    iget-object v0, p0, Lcom/bigtincan/android/adfree/FreeMe;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v0}, Lcom/bigtincan/android/adfree/Common;->newBeta()Z

    move-result v0

    if-nez v0, :cond_0

    .line 259
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/FreeMe;->showMessageNext()V

    .line 283
    :goto_0
    return-void

    .line 263
    :cond_0
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 264
    const v1, 0x108009b

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 265
    const-string v1, "New version available"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 266
    const-string v1, "Click OK to download the new version."

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 267
    const-string v1, "Cancel"

    new-instance v2, Lcom/bigtincan/android/adfree/FreeMe$9;

    invoke-direct {v2, p0}, Lcom/bigtincan/android/adfree/FreeMe$9;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 274
    const-string v1, "Ok"

    new-instance v2, Lcom/bigtincan/android/adfree/FreeMe$10;

    invoke-direct {v2, p0}, Lcom/bigtincan/android/adfree/FreeMe$10;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 282
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto :goto_0
.end method

.method private showMessageNext()V
    .locals 2

    .prologue
    .line 287
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bigtincan/android/adfree/DoUpgrade;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->startActivity(Landroid/content/Intent;)V

    .line 288
    invoke-virtual {p0}, Lcom/bigtincan/android/adfree/FreeMe;->finish()V

    .line 289
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 53
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 55
    const v1, 0x7f030002

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->setContentView(I)V

    .line 56
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->setRequestedOrientation(I)V

    .line 57
    new-instance v1, Lcom/bigtincan/android/adfree/Common;

    invoke-direct {v1, p0}, Lcom/bigtincan/android/adfree/Common;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/bigtincan/android/adfree/FreeMe;->common:Lcom/bigtincan/android/adfree/Common;

    .line 59
    const v1, 0x7f050011

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    sput-object v1, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    .line 60
    sget-object v1, Lcom/bigtincan/android/adfree/FreeMe;->splashImageView:Landroid/widget/ImageView;

    const/high16 v2, 0x7f02

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 62
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/bigtincan/android/adfree/FreeMe$4;

    invoke-direct {v2, p0}, Lcom/bigtincan/android/adfree/FreeMe$4;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    sput-object v1, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    .line 79
    sget-object v1, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    .line 81
    new-instance v0, Lcom/bigtincan/android/adfree/FreeMe$5;

    invoke-direct {v0, p0}, Lcom/bigtincan/android/adfree/FreeMe$5;-><init>(Lcom/bigtincan/android/adfree/FreeMe;)V

    .line 97
    .local v0, splashThread:Ljava/lang/Thread;
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 98
    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .parameter "menu"

    .prologue
    .line 193
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    .line 195
    const v0, 0x7f040019

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 196
    const v0, 0x7f04001a

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 197
    const v0, 0x7f04001b

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 199
    const/4 v0, 0x1

    return v0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 38
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 40
    const-string v0, "onDestroy()"

    invoke-static {v0}, Lcom/bigtincan/android/adfree/Common;->LogMessage(Ljava/lang/String;)V

    .line 42
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    if-eqz v0, :cond_0

    .line 44
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 45
    sget-object v0, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V

    .line 47
    :cond_0
    const/4 v0, 0x0

    sput-object v0, Lcom/bigtincan/android/adfree/FreeMe;->sIV:Ljava/lang/Thread;

    .line 48
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter "item"

    .prologue
    .line 204
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f040019

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 205
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "https://www.bigtincan.com/donation.html"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->startActivity(Landroid/content/Intent;)V

    .line 211
    :cond_0
    :goto_0
    const/4 v0, 0x1

    return v0

    .line 206
    :cond_1
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f04001a

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 207
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "http://forum.xda-developers.com/showthread.php?t=509997"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 208
    :cond_2
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f04001b

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/FreeMe;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 209
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "http://forum.bigtincan.com/index.php?topic=121.0"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/FreeMe;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
